package com.example.demo.DAO;


import com.example.demo.Entity.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.Date;
import java.util.List;

@Repository
public interface UserRepo extends JpaRepository<User, Long> {
    public List<User> findByName(String name);
    public User  findByEmail(String Email);
    public User findByPhoneNumber(String PhoneNumber);
    public List<User>  findByRole(String Role);
    public List<User>  findByRegistrationDate(Date RegistrationDate);

}
